<style>
     label{vertical-align: middle;}
    .reperiod input{
        outline: none;
    }
</style>
<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
<!--    <input type="text"  name="row[authid]" value="{$row.authid|htmlentities}">-->
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">电话/账号:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" name="row[phone]" value="{$row.phone|htmlentities}" data-rule="required;phone"/>
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">微信号:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" name="row[wxh]" value="{$row.wxh|htmlentities}" />
        </div>
    </div>
    <div class="form-group">
        <label for="doctorname" class="control-label col-xs-12 col-sm-2">医生姓名:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="doctorname" name="row[doctorname]" value="{$row.doctorname|htmlentities}" data-rule="required;doctorname" />
        </div>
    </div>
    <div class="form-group">
        <label for="idcard" class="control-label col-xs-12 col-sm-2">身份证号:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="idcard" name="row[idcard]" value="{$row.idcard|htmlentities}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-doctorimg" class="control-label col-xs-12 col-sm-2">医生图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-doctorimg" data-rule="" class="form-control" size="50" name="row[doctorimg]" type="text" value="{$row.doctorimg}">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="plupload-doctorimg" class="btn btn-danger plupload" data-input-id="c-doctorimg"
                                data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-doctorimg">
                            <i class="fa fa-upload"></i> 上传
                        </button>
                    </span>
                </div>
            </div>
            <span class="msg-box n-right" for="c-doctorimg"></span>
            <ul class="row list-inline plupload-preview" id="p-doctorimg"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="idcard" class="control-label col-xs-12 col-sm-2">预约金额:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="reservation_amount" name="row[reservation_amount]" value="{$row.reservation_amount|htmlentities}" />
        </div>
    </div>
    <div class="form-group">
        <label for="allegorical" class="control-label col-xs-12 col-sm-2">践行语:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="allegorical" name="row[allegorical]" value="{$row.allegorical|htmlentities}" placeholder="20个以内的字" />
        </div>
    </div>


    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">医生简介:</label>
        <div class="col-xs-12 col-sm-8">
            <input  class="form-control" name="row[introduction]" value="{$row.introduction|htmlentities}" placeholder="多个请以|分割"/>
        </div>
    </div>

    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">擅长专业:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" rows="5" name="row[profession]" cols="50">{$row.profession|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">工作时间:</label>
        <div class="col-xs-12 col-sm-8">
            {volist name="selectweek" id="vo"}
                <span style="margin-right: 20px">
                    <input type="checkbox" id="row[checkweek]-{$vo}" name="row[checkweek][]" value="{$vo}" {if strpos($row['checkweek'],$vo) !== false} checked {/if}>
                    <label>{$vo}</label>
                </span>
            {/volist}
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">工作时间段:</label>
        <div class="col-xs-12 col-sm-8">
            {volist name="dockorsku" id="vo"}
            <div class="reperiod">
                <input type="checkbox" id="prow[dateperiod]-{$vo.dateperiod}" name="prow[dateperiod][]" value="{$vo.dateperiod}" {if $vo.dateperiod ==  $vo.period} checked{/if} />
                <label>{$vo.dateperiod}</label>
                <label style="margin-left: 20px">预约人数：</label>
                <input type="number" placeholder="请输入预约人数" id="prow[pnumber]-{$vo.id}" name="prow[pnumber][]" value="{$vo.pnumber|0}"/>
                <label style="margin-left: 20px">是否开启：</label>
                <input  {if $vo.status==1} checked {/if} name="prow[status][]{$vo.id}" type="radio" value="1"><label >打开</label>
                <input {if $vo.status==0} checked {/if} name="prow[status][]{$vo.id}" type="radio" value="0"><label >关闭</label>
                <input type="hidden" name="prow[id][]" value="{$vo.dsid}"/>
                <input type="hidden" name="prow[pn][]" value="{$vo.pn}"/>
            </div>
            {/volist}
        </div>
    </div>

    <div class="form-group">
        <label for="c-qualification" class="control-label col-xs-12 col-sm-2">资质:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-qualification" data-rule="" class="form-control" size="50" name="row[qualification]" type="text" value="{$row.qualification}">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="plupload-qualification" class="btn btn-danger plupload" data-input-id="c-qualification"
                                data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-qualification">
                            <i class="fa fa-upload"></i> 上传
                        </button>
                    </span>
                </div>
            </div>
            <span class="msg-box n-right" for="c-qualification"></span>
            <ul class="row list-inline plupload-preview" id="p-qualification"></ul>
        </div>
    </div>

    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">地址:</label>
        <div class="col-xs-12 col-sm-4">
            <input  class="form-control" name="row[docaddr]" value="{$row.docaddr|htmlentities}" />
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_radios('row[status]', ['1'=>'审核通过', '2'=>'审核中','3'=>'下线'], $row.status)}
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">排序:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" name="row[sort]" value="{$row.sort}" />
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-4">
            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>
</form>
<style>
    .radio label {
        margin-right: 50px;
    }
    .checkbox label {
        margin-right: unset;
    }
    .checkbox {
        width: 45px;
        margin-right: 0;
    }
</style>
